async function getBuJiGe() {
	var [err, res] = await uni.request({
		url: 'http://211.82.48.36/student/integratedQuery/scoreQuery/unpassedScores/callback',
		header: {
			'Content-Type': 'application/x-www-form-urlencoded'
		},
	});

	if (res.data.indexOf("登录") != -1) return null

	if (err) return null

	console.log(res)

	let list0 = res.data[0]['cjList'];
	let list1 = res.data[1]['cjList'];

	let resultArr0 = []
	let resultArr1 = []

	for (let i = 0; i < list0.length; i++) {
		let value0 = list0[i]
		let name = value0['courseName']; //名字
		let gpa = value0['credit']; //绩点
		let cate = value0['courseAttributeName']; //类型
		let course = value0['courseScore']; //分数
		resultArr0.push([name, gpa, cate, course]);
	}


	for (let i = 0; i < list1.length; i++) {
		let value0 = list1[i]
		let name = value0['courseName']; //名字
		let gpa = value0['credit']; //绩点
		let cate = value0['courseAttributeName']; //类型
		let course = value0['courseScore']; //分数
		resultArr1.push([name, gpa, cate, course]);
	}

	let resultArr = [resultArr0, resultArr1]
	
	console.log(resultArr)
	return {
		resultArr
	}
}


export {
	getBuJiGe
}
